package world.snowcrystal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import world.snowcrystal.dao.UserAuthenticationDetails;

public interface UserAuthenticationDetailsMapper
        extends BaseMapper<UserAuthenticationDetails> {


    /**
     * 为新用户插入所使用的简单插入方法，只涉及插入如下几个字段
     * <li>username</li>
     * <li>password</li>
     * <li>email</li>
     * <li>userRegisterIp</li>
     * 并使用 <a href="https://mybatis.org/mybatis-3/sqlmap-xml.html#insert-update-and-delete">key generation</a>
     */
    int insertNewUserKG(@Param("user") UserAuthenticationDetails userAuthenticationDetails);

}
